<table id="list-table" class="table table-striped table-hover table-bordered table-base">
    <thead>
        <tr>
            <th class="col-1">模块</th>
            <th class="col-2">启用</th>
            <th class="col-3">菜单名称</th>
            <th class="col-4">别名</th>
            <th class="col-5">ICON图标</th>
            <th class="col-6">访问地址</th>
            <th class="col-7">排序</th>
        </tr>
    </thead>
    <!--顶级菜单-->
    {foreach name = "menuBlockList" item = "topMenu" }
    <tbody>
        <tr>
            <td class="top-menu-name col-1">{$topMenu.name}</td>
            <td colspan="6" class="top-menu-area">
            <!--二级菜单块-->
                <table class="table table-base sub-menu-table">
                    {foreach name = "topMenu.subList" item = "block"}
                    <tbody class="sub-menu-block">
                        {foreach name = "block" item = "menu"}
                        <tr class="menu" data-id="{$menu.id}" title="拖拽我可对菜单进行分组排序">
                            <td class="col-2">
                                <input mid="{$menu.id}" style="height: 16px;width: 16px;cursor: pointer;" class="is_use" type="checkbox" value="{$menu.is_use}" {if $menu.is_use eq '1'} checked {/if} >
                            </td>
                            <td class="col-3"><input type="text" class="menu-name" value="{$menu.name}"></td>
                            <td class="col-4"><input type="text" class="menu-unique-name" value="{$menu.unique_name}"></td>
                            <td class="col-5"><i class="icon iconfont">{$menu.icon}</i><input type="text" class="menu-icon" value="{$menu.icon}"></td>
                            <td class="col-6">{$menu.url}</td>
                            <td class="col-7">{$menu.sort}</td>

                        </tr>
                        {/foreach}
                    </tbody>
                    {/foreach}
                </table>
            </td>
        </tr>
    </tbody>
    {/foreach}
    <tfoot>
        <tr>
            <td></td>
            <td colspan="6"><a class="btn btn-success save">保存</a></td>

        </tr>
    </tfoot>
</table>
<script type="text/javascript" src="__static__/js/jquery.sortable/jquery-sortable.js"></script>
<script type="text/javascript" src="__app__/admin/view/Change/configCenter/menuList.js"></script>
